pp108 : oncontextmenu Event

oncontextmenu Event


This event is executed when you right-click a cell in an XGrid.

Syntax

Inline HTML
<div cordysType="wcp.library.ui.XGrid" id="xgridId" oncontextmenu="handler()">
...
</div>
Event property xgridId.oncontextmenu = handler


Event Information

To invoke Right-click a cell in the XGrid.
Default Action Initiates any action associated with this event.


Event Object Properties


Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Property Description
businessObject XML node of the business object associated with the row.
columnId Read-only. String that refers to the identifier of the column of the cell, for which the event is executed.
data XML node that is the basis for the content in the XGrid.
dataNode XML node associated with the cell that was right-clicked.
getCells() Returns an array of cell objects.
getIndex() Returns the row index, where the index of the first row is '1'.
row Refers to the HTML node of the unfrozen part of a row.
rowData XML node of the data in a row.
rowFreezeColumn Refers to the HTML node of the frozen part (if any) of a row.
srcElement Read-only. Refers to the HTML node of the cell that caused the event to be executed.
value Refers to the value of the cell.


See Also


xgrid